package com.zhouxiaoge.logs.controller;

import com.zhouxiaoge.logs.config.logs.MyLog;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class IndexController {

    @Value("${swagger2.url:1000}")
    private String url;


    @MyLog(desc = "首页")
    @GetMapping
    public String index() {
        return "index-->" + url;
    }

}
